﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UMLTouch.DomainRecognition.Factory;
using UMLTouch.Core.UI;
using UMLTouch.Core.ViewModel;

namespace UMLTouch.UI.Start.ViewModels
{
    public class DomainRecognitionViewModel
    {
        IDomainRecognition _domainRecognition;

        public String Description {
            get { return _domainRecognition.Description; }
        }

        public String DisplayName
        {
            get { return _domainRecognition.DisplayName; }
        }

        public String DefaultContextName 
        {
            get { return _domainRecognition.DefaultContextName; }
        }

        public IDiagramContext CreateContext(String s)
        {
            return _domainRecognition.CreateContext(s);
        }

        public DomainRecognitionViewModel(IDomainRecognition domainRecognition)
        {
            _domainRecognition = domainRecognition;
        }

        public DiagramContextViewModel CreateContextViewModel(string name)
        {
            return _domainRecognition.CreateContextViewModel(name);
        }

        public DiagramContextViewModel CreateContextViewModel(IDiagramContext DiagramContext)
        {
            return _domainRecognition.CreateContextViewModel(DiagramContext);
        }
    }
}
